#include <cstdlib>
#include <iostream>
#include "priority_queue.h"

using namespace std;

int main(int argc, char *argv[]){
  PriorityQueue q;
  q.insert(5);
  q.insert(2);
  q.insert(8);
  q.insert(9);
  q.insert(10);
  q.insert(3);
  
  q.insert(11);
  q.insert(12);
  q.insert(13);
  
  
  
  int data;
  while(q.deleteMin(data)){
    cout<<data<<endl;
  }
  system("PAUSE"); 
  return EXIT_SUCCESS;
}
